import request from "@/utils/request";
const api = {
  getPageList: "api/caregiver/getWorkerOrdersList",
  getWorkerOrdersDetail: "api/caregiver/getWorkerOrdersDetail",
  refuseWorkerOrders: "api/caregiver/refuseWorkerOrders",
  receivingWorkerOrders: "api/caregiver/receivingWorkerOrders",
  startWorkerOrders: "api/caregiver/startWorkerOrders",
  finishWorkerOrders: "api/caregiver/finishWorkerOrders",
  getHouseWorkerOrdersList: "api/house/getWorkerOrdersList",
  getHouseWorkerOrdersDetail: "api/house/getWorkerOrdersDetail",
  refuseHouseWorkerOrders: "api/house/refuseWorkerOrders",
  receivingHouseWorkerOrders: "api/house/receivingWorkerOrders",
  startHouseWorkerOrders: "api/house/startWorkerOrders",
  getCaregiverStoreOrdersList: "api/caregiver/getStoreOrdersList",
  getCaregiverStoreOrdersDetail: "api/caregiver/getStoreOrdersDetail",
  getOrdersList: "api/goods/getOrdersList",
  getOrdersDetail: "api/goods/getOrdersDetail",
  getOrdersLineList: "api/travel/getOrdersLineList",
  getOrdersStatistics: "api/travel/getOrdersStatistics",
  getTravelList: "api/travel/getOrdersList",
	getStoreOrdersList: 'api/house/getStoreOrdersList',
	storeCancelOrders: 'api/house/storeCancelOrders',
	getOrdersAssociationList: 'api/association/getOrdersList',
	getActivityList: 'api/association/getActivityList',
};
/*** 师傅端 ***/
// 陪护订单列表
export function getPageList(data) {
  return request.get(api.getPageList, data);
}
// 陪护订单详情
export function getWorkerOrdersDetail(data) {
  return request.get(api.getWorkerOrdersDetail, data);
}
// 陪护订单拒单
export function refuseWorkerOrders(data) {
  return request.post(api.refuseWorkerOrders, data);
} 
// 陪护订单接单
export function receivingWorkerOrders(data) {
  return request.post(api.receivingWorkerOrders, data);
} 
// 陪护订单开始服务
export function startWorkerOrders(data) {
  return request.post(api.startWorkerOrders, data);
} 
// 陪护订单完成服务
export function finishWorkerOrders(data) {
  return request.post(api.finishWorkerOrders, data);
}

// 家政订单列表
export function getHouseWorkerOrdersList(data) {
  return request.get(api.getHouseWorkerOrdersList, data);
}
// 家政订单详情
export function getHouseWorkerOrdersDetail(data) {
  return request.get(api.getHouseWorkerOrdersDetail, data);
}
// 家政订单拒单
export function refuseHouseWorkerOrders(data) {
  return request.post(api.refuseHouseWorkerOrders, data);
} 
// 家政订单接单
export function receivingHouseWorkerOrders(data) {
  return request.post(api.receivingHouseWorkerOrders, data);
} 
// 家政订单开始服务
export function startHouseWorkerOrders(data) {
  return request.post(api.startHouseWorkerOrders, data);
}

/*** 商家端 ***/

// 陪护商家订单列表
export function getCaregiverStoreOrdersList(data) {
  return request.post(api.getCaregiverStoreOrdersList, data);
}
// 陪护商家订单详情
export function getCaregiverStoreOrdersDetail(data) {
  return request.get(api.getCaregiverStoreOrdersDetail, data);
}


// 商城商家订单列表
export function getOrdersList(data) {
  return request.post(api.getOrdersList, data);
}
// 商城商家订单详情
export function getOrdersDetail(data) {
  return request.get(api.getOrdersDetail, data);
}


// 旅游商家订单路线选择列表
export function getOrdersLineList(data) {
  return request.get(api.getOrdersLineList, data);
}
// 旅游商家订单统计列表
export function getOrdersStatistics(data) {
  return request.get(api.getOrdersStatistics, data);
}
// 旅游商家订单成员列表
export function getTravelList(data) {
  return request.get(api.getTravelList, data);
}


// 商城商家家政订单列表
export function getStoreOrdersList(data) {
	return request.get(api.getStoreOrdersList, data)
}
// 商城商家家政取消
export function storeCancelOrders(data) {
	return request.post(api.storeCancelOrders, data)
}

// 文娱订单列表
export function getOrdersAssociationList(data) {
	return request.get(api.getOrdersAssociationList, data)
}
// 文娱订单筛选订单上的活动
export function getActivityList(data) {
	return request.get(api.getActivityList, data)
}